package com.leyou;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/*
todo
   若@SpringBootApplication注解添加scanBasePackages= {“com.xxx.xxx”}
   和@MapperScan注解之后，在网页或者postman中做请求的时候显示404错误
   出现404原因：@SpringBootApplication(scanBasePackages = {""})注解会导致Controller层无法扫描到
   解决方案：在scanBasePackages = {""}中添加Controller层的路径或者本项目的路径即可，
          目的是为了让其能够扫描到controller层。

*/
//启动类
//@SpringBootApplication(scanBasePackages = {"com.leyou.auth","com.leyou.common.advice"})
@SpringBootApplication
public class LyAuthApplication {
    public static void main(String[] args) {
        SpringApplication.run(LyAuthApplication.class,args);
    }
}
